#!/usr/bin/env node

//采用async和await动态导入chalk模块
(async () => {
    const chalk=await import('chalk').default;
    const log=console.log;
    const circle=require('./06-export-object.js');
    const green=chalk.green;

    log(green(`area:           ${circle.area(10)}`));
    log(green(`diameter:       ${circle.diameter(10)}`));
    log(green(`circumference:  ${circle.circumference(10)}`));
    log(module);


})();

